package com.bdm.property.management.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * @Author: MAD4O
 * @Date: 2020/8/22 16:00
 * @Description: 
 */
@Data
@TableName(value = "repair")
public class Repair implements Serializable {
    /**
     * 维修信息表编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 业主编号，连接业主信息和维修信息
     */
    @TableField(value = "ownerid")
    private Long ownerid;

    /**
     * 业主联系电话
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 维修标题（类型）
     */
    @TableField(value = "title")
    private String title;

    /**
     * 维修具体内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 维修开始时间
     */
    @TableField(value = "time")
    private Date time;

    /**
     * 维修状态
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 维修费用
     */
    @TableField(value = "money")
    private Double money;

    /**
     * 维修员姓名
     */
    @TableField(value = "repairer")
    private String repairer;

    /**
     * 维修员联系电话
     */
    @TableField(value = "rphone")
    private String rphone;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_OWNERID = "ownerid";

    public static final String COL_PHONE = "phone";

    public static final String COL_TITLE = "title";

    public static final String COL_CONTENT = "content";

    public static final String COL_TIME = "time";

    public static final String COL_STATUS = "status";

    public static final String COL_MONEY = "money";

    public static final String COL_REPAIRER = "repairer";

    public static final String COL_RPHONE = "rphone";
}